Change to testgtk to go along with GdkRgb integration into gtk_preview.
authorRaph Levien <raph@src.gnome.org>
Thu, 20 Aug 1998 06:59:26 +0000 (06:59 +0000)
committerRaph Levien <raph@src.gnome.org>
Thu, 20 Aug 1998 06:59:26 +0000 (06:59 +0000)
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/testgtk.c
tests/testgtk.c

index 0691ca573b4e32f81ebcfb3f13b78be14e7dfca3..1e109dbbc3366b6e052afaa60ca6357171cdcbf0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-08-19  Raph Levien  <raph@gimp.org>
+
+       * gtk/testgtk.c (create_color_preview): pushed the colormap and
+       visual so it would work better with GdkRgb.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
index 0691ca573b4e32f81ebcfb3f13b78be14e7dfca3..1e109dbbc3366b6e052afaa60ca6357171cdcbf0 100644 (file)
@@ -1,3 +1,8 @@
+1998-08-19  Raph Levien  <raph@gimp.org>
+
+       * gtk/testgtk.c (create_color_preview): pushed the colormap and
+       visual so it would work better with GdkRgb.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
index 0691ca573b4e32f81ebcfb3f13b78be14e7dfca3..1e109dbbc3366b6e052afaa60ca6357171cdcbf0 100644 (file)
@@ -1,3 +1,8 @@
+1998-08-19  Raph Levien  <raph@gimp.org>
+
+       * gtk/testgtk.c (create_color_preview): pushed the colormap and
+       visual so it would work better with GdkRgb.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
index 0691ca573b4e32f81ebcfb3f13b78be14e7dfca3..1e109dbbc3366b6e052afaa60ca6357171cdcbf0 100644 (file)
@@ -1,3 +1,8 @@
+1998-08-19  Raph Levien  <raph@gimp.org>
+
+       * gtk/testgtk.c (create_color_preview): pushed the colormap and
+       visual so it would work better with GdkRgb.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
index 0691ca573b4e32f81ebcfb3f13b78be14e7dfca3..1e109dbbc3366b6e052afaa60ca6357171cdcbf0 100644 (file)
@@ -1,3 +1,8 @@
+1998-08-19  Raph Levien  <raph@gimp.org>
+
+       * gtk/testgtk.c (create_color_preview): pushed the colormap and
+       visual so it would work better with GdkRgb.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
index 0691ca573b4e32f81ebcfb3f13b78be14e7dfca3..1e109dbbc3366b6e052afaa60ca6357171cdcbf0 100644 (file)
@@ -1,3 +1,8 @@
+1998-08-19  Raph Levien  <raph@gimp.org>
+
+       * gtk/testgtk.c (create_color_preview): pushed the colormap and
+       visual so it would work better with GdkRgb.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
index 0691ca573b4e32f81ebcfb3f13b78be14e7dfca3..1e109dbbc3366b6e052afaa60ca6357171cdcbf0 100644 (file)
@@ -1,3 +1,8 @@
+1998-08-19  Raph Levien  <raph@gimp.org>
+
+       * gtk/testgtk.c (create_color_preview): pushed the colormap and
+       visual so it would work better with GdkRgb.
+
 1998-08-19  Raph Levien  <raph@gimp.org>
 
        * gdk/gdkrgb.c: fixed some bugs in the 565_d mode, and added a
index 671af648ef977fdb3d516678ed1c4c2453e2efb1..f64d4e4a46791f1851f2c2292d4fbf925678375c 100644 (file)
@@ -6602,7 +6602,11 @@ create_color_preview (void)
 
   if (!window)
     {
+      gtk_widget_push_visual (gdk_rgb_get_visual ());
+      gtk_widget_push_colormap (gdk_rgb_get_cmap ());
       window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+      gtk_widget_pop_colormap ();
+      gtk_widget_pop_visual ();
 
       gtk_signal_connect (GTK_OBJECT (window), "destroy",
                          GTK_SIGNAL_FUNC(color_preview_destroy),
index 671af648ef977fdb3d516678ed1c4c2453e2efb1..f64d4e4a46791f1851f2c2292d4fbf925678375c 100644 (file)
@@ -6602,7 +6602,11 @@ create_color_preview (void)
 
   if (!window)
     {
+      gtk_widget_push_visual (gdk_rgb_get_visual ());
+      gtk_widget_push_colormap (gdk_rgb_get_cmap ());
       window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+      gtk_widget_pop_colormap ();
+      gtk_widget_pop_visual ();
 
       gtk_signal_connect (GTK_OBJECT (window), "destroy",
                          GTK_SIGNAL_FUNC(color_preview_destroy),